#!/bin/bash

# config folder - edge.json
WORKS_DIR=/home/linaro/dedge
if [ -f ${WORKS_DIR}/data/config.json ]; then
        echo "${WORKS_DIR}/data/config.json exists"
else
        echo "${WORKS_DIR}/data/config.json copy"
        mkdir -p ${WORKS_DIR}/data
        cp ./config.json  ${WORKS_DIR}/data
fi

export LD_LIBRARY_PATH=$(pwd)/lib:/usr/local/lib:/usr/lib
export PATH=$(pwd):$PATH

ulimit -c unlimited

sleep 10

./edge